require('babel-polyfill')
require('babel-register')({
    "presets": [
        "es2015",
        "react",
        "stage-0"
    ],
    "plugins": [
        "syntax-dynamic-import",
        "dynamic-import-node"
    ]
})
require('css-modules-require-hook')({
    extensions: ['.css', '.less'],
    camelCase: true,
    generateScopedName: '[name]__[local]__[hash:base64:8]'
})
require('asset-require-hook')({
    extensions: ['jpg', 'png', 'gif', 'webp'],
    limit: 8000
})

require('./server')